#pragma once
#include "Singleton.h"
#include <hash_map>
class Skeleton;

class SkeletonManager : public Singleton<SkeletonManager>
{
	typedef stdext::hash_map<std::string, Skeleton*> SkeletonMap;
public:
	SkeletonManager();
	~SkeletonManager();
	
	Skeleton* Create(const std::string& name);
	Skeleton* Load(const std::string& name);
	Skeleton* GetByName(const std::string& name);
	bool RemoveByName(const std::string& name);
	void RemoveAll();

private:
	SkeletonMap mSkeletons;
};
